package com.wondertek.applet.controller.business;

import com.wondertek.common.base.Result;
import com.wondertek.service.dto.sys.req.BaseUpdateReq;
import com.wondertek.service.entity.business.SitePo;
import com.wondertek.service.service.business.SiteService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @description: 站点管理
 * @author: qinjianhui
 * @create: 2024-07-31 11:06
 **/
@RestController
@RequestMapping("/app/business/site/")
@CrossOrigin("*")
@Tag(name = "站点管理")
public class SiteController {

    @Resource
    private SiteService siteService;

    @PostMapping("/select/site")
    @Operation(summary = "查询站点")
    public Result<List<SitePo>> selectSiteByUserId(@RequestBody BaseUpdateReq baseUpdateReq){
        return Result.success(siteService.selectSiteByUserId(baseUpdateReq.getId()));
    }
}


